package com.ruoyi.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 借款对象 borrowing_amount
 * 
 * @author ruoyi
 * @date 2020-07-16
 */
public class BorrowingAmount extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 借款id */
    private Long bId;

    /** 借款类型 */
    @Excel(name = "借款类型")
    private Integer bStatus;

    /** 借款申请人 */
    @Excel(name = "借款申请人")
    private String bApplicant;

    /** 借款时间 */
    @Excel(name = "借款时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date bTime;

    /** 借款原因 */
    @Excel(name = "借款原因")
    private String bCause;

    /** 借款金额 */
    @Excel(name = "借款金额")
    private BigDecimal bAmount;

    /** 余额 */
    @Excel(name = "余额")
    private BigDecimal bBalance;

    /** 审批类型 */
    @Excel(name = "审批类型")
    private Integer bType;

    /** 审批意见 */
    @Excel(name = "审批意见")
    private String bOpinion;

    public void setbId(Long bId) 
    {
        this.bId = bId;
    }

    public Long getbId() 
    {
        return bId;
    }
    public void setbStatus(Integer bStatus) 
    {
        this.bStatus = bStatus;
    }

    public Integer getbStatus() 
    {
        return bStatus;
    }
    public void setbApplicant(String bApplicant) 
    {
        this.bApplicant = bApplicant;
    }

    public String getbApplicant() 
    {
        return bApplicant;
    }
    public void setbTime(Date bTime)
    {
        this.bTime = bTime;
    }

    public Date getbTime()
    {
        return bTime;
    }
    public void setbCause(String bCause) 
    {
        this.bCause = bCause;
    }

    public String getbCause() 
    {
        return bCause;
    }
    public void setbAmount(BigDecimal bAmount)
    {
        this.bAmount = bAmount;
    }

    public BigDecimal getbAmount()
    {
        return bAmount;
    }
    public void setbBalance(BigDecimal bBalance)
    {
        this.bBalance = bBalance;
    }

    public BigDecimal getbBalance()
    {
        return bBalance;
    }
    public void setbType(Integer bType)
    {
        this.bType = bType;
    }

    public Integer getbType()
    {
        return bType;
    }
    public void setbOpinion(String bOpinion)
    {
        this.bOpinion = bOpinion;
    }

    public String getbOpinion()
    {
        return bOpinion;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("bId", getbId())
            .append("bStatus", getbStatus())
            .append("bApplicant", getbApplicant())
            .append("bCause", getbCause())
            .append("bAmount", getbAmount())
            .append("bBalance", getbBalance())
            .append("bType", getbType())
            .append("bOpinion", getbOpinion())
            .toString();
    }
}
